import  axios from "../../axios.js"

export default{
  //查询所有
  listAuthority(data,binding)
  {
    return axios({
      url:'/authority-entity/listAuthority',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //查询所有,带分页
  listPageAuthority(data,binding,pageNum,pageSize)
  {
    return axios({
      url:'/authority-entity/listPageAuthority?'+'pageNum='+pageNum+'&'+'pageSize='+pageSize,
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //单个新增
  singleAdd(data,binding){
    return axios({
      url:'/authority-entity/saveAuthority',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //单个删除
  singleDetete(data,binding){
    return axios({
      url:'/authority-entity/removeById',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //单个编辑
  singleUpdate(data,binding){
    return axios({
      url:'/authority-entity/updateById',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
};
